<!DOCTYPE HTML >
<html>
    <head>
        <title>div标签</title>
        <meta charset='utf-8'>
        <link rel='stylesheet' type='text/css' href='../css/c1.css'>
    </head>
    <body>
        <div class='title'>div是一个块级元素，定义文档的分区<br/>
            用id或class标记div
        </div>
        <hr/>
    <div class='title'>代码示例</div>
        <div class='code'>
        <pre>
            &lt;<span class='red'>div</span> style ='color:#00FF00'&gt;
            &lt;h3>This is a header&lt;/h3&gt;
            &lt;p>This is a paragraph.&lt;/p&gt;
            &lt;<span class='red'>/div</span>&gt;
        </pre></div>
        <hr/>
    <div class='title'>代码效果</div>
        <div class='result'>
    <div style ='color:#00FF00'>
        <h3>This is a header</h3>
        <p>This is a paragraph.</p></div>
    </div>
    </body>
</html>